package com.shuqi.model.bean;

import com.shuqi.database.model.UserInfo;

/***
 * 账户信息：包含用户验证信息
 * 
 * @author yanghuawei
 */
public class AccountInfo {
    /** 联网请求结果：200，成功，其他均为失败 */
    private String serverState;
    /** 联网请求结果：提示语 */
    private String serverMessage;

    /** 用户身份： 1会员 2准会员 */
    private String grade;
    /** 用户身份验证结果：1成功，2失败 */
    private String validate;
    /** 用户身份验证结果：提示语 */
    private String validateMessage;

    /**
     * 用户唯一性验证code： 200，是会员，验证成功。 201，准会员，验证通过，绑定sn 202，验证通过，分配新的userid 203，验证失败，需下次重新验证
     * 其他为失败，分配800万身份
     * */
    private String uniqueCode;
    /** 用户唯一性验证结果：提示语 */
    private String uniqueMessage;
    private String userId;
    private UserInfo user;

    public String getServerState() {
        return serverState;
    }

    public void setServerState(String serverState) {
        this.serverState = serverState;
    }

    public String getServerMessage() {
        return serverMessage;
    }

    public void setServerMessage(String serverMessage) {
        this.serverMessage = serverMessage;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public String getValidate() {
        return validate;
    }

    public void setValidate(String validate) {
        this.validate = validate;
    }

    public String getValidateMessage() {
        return validateMessage;
    }

    public void setValidateMessage(String validateMessage) {
        this.validateMessage = validateMessage;
    }

    public String getUniqueCode() {
        return uniqueCode;
    }

    public void setUniqueCode(String uniqueCode) {
        this.uniqueCode = uniqueCode;
    }

    public String getUniqueMessage() {
        return uniqueMessage;
    }

    public void setUniqueMessage(String uniqueMessage) {
        this.uniqueMessage = uniqueMessage;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public UserInfo getUser() {
        return user;
    }

    public void setUser(UserInfo user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "AccountInfo [serverState=" + serverState + ", serverMessage=" + serverMessage
                + ", grade=" + grade + ", validate=" + validate + ", validateMessage="
                + validateMessage + ", uniqueCode=" + uniqueCode + ", uniqueMessage="
                + uniqueMessage + ", userId=" + userId + ", user="
                + (user == null ? "null" : user.toString()) + "]";
    }

}
